Architectural Synthesis and Digital Circuit Optimization